package com.zrgj.manager.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zrgj.domain.Primary;
import com.zrgj.manager.mapper.PrimaryMapper;
import com.zrgj.manager.service.IPrimaryService;
import org.springframework.stereotype.Component;

import java.util.List;

@Service
@Component
public class PrimaryServiceImpl implements IPrimaryService {
    private PrimaryMapper primaryMapper;

    public PrimaryServiceImpl(PrimaryMapper primaryMapper) {
        this.primaryMapper = primaryMapper;
    }

    @Override
    public List<Primary> selectPrimaryList() {
        return primaryMapper.selectPrimaryList();
    }

    @Override
    public Primary selectPrimary(Integer primaryId) {
        return primaryMapper.selectPrimary(primaryId);
    }

    @Override
    public void update(Primary primary) {
        primaryMapper.update(primary);
    }

    @Override
    public void insert(Primary primary) {
        primaryMapper.insert(primary);
    }

    @Override
    public void delete(Integer primaryId) {
        primaryMapper.delete(primaryId);
    }
}
